package xing.design.pattern.create.factory.simple;

import xing.design.pattern.create.factory.IBasic;
import xing.design.pattern.create.factory.Basic1;

/**
 * @author xing
 * @date 2023/2/7 23:00:55
 */
public class Main {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        IBasic basic = SimpleBasicFactory.createBasic(Basic1.class);
        IBasic basic2 = SimpleBasicFactory.creatBasic("basic2");
    }
}
